﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;

namespace _17_string
{
    class Program
    {
        static void Main(string[] args)
        {
            string str = null;
            Stopwatch sw = new Stopwatch(); //创建一个计时器， 用来记录程序运行时间
            sw.Start();

            StringBuilder sb = new StringBuilder();

            for (int i = 0; i < 100000; ++i)
            {
                sb.Append(i);
            }
            Console.WriteLine(sw.Elapsed);
            Console.ReadKey();
        }
    }
}
